#include "student.h"
#include<QDebug>

Student::Student(QObject *parent) : QObject(parent)
{

}

void Student::study()
{
     qDebug() << "认真听讲";
}

void Student::treat(QString textbook)
{
    //qDebug() << "拿出课本, 老师讲到 ：" << textbook ;

    //QString转换char *  先转成Qsytearray类型 再转char *

    qDebug() << "拿出课本, 老师讲到 ：" << textbook.toUtf8().data();


}
